@charset "utf-8";

//文化

.culture {
    box-sizing: border-box;
    width: 100%;
    padding: 0 15%;
    margin-top: 50px;

    > img {
        width: 70%;
        height: 400px;
        float: left;
    }

    ul {
        width: 30%;
        float: left;
        height: 400px;
        margin: 0;
        padding: 0;

        li {
            width: 20%;
            height: 400px;
            float: left;
            position: relative;
            transition: all 0.5s linear;

            img {
                position: absolute;
                width: 100%;
                height: 100%;
            }

            .textBox {

                width: 100%;
                height: 100%;
                position: absolute;
                font-size: 20px;
                background: rgba(0, 0, 0, 0.8);
                transition: all 0.5s linear;

                p {
                    position: absolute;
                    top: 100px;
                    width: 30px;
                    text-align: center;
                    left: 50%;
                    margin-left: -15px;
                    color: #FFF;
                }

                a {
                    position: absolute;
                    bottom: 20%;
                    display: block;
                    width: 80%;
                    left: 10%;
                    border: 1px solid #FFF;
                    text-align: center;
                    border-radius: 15px;
                    line-height: 30px;
                    color: #FFF;
                    opacity: 0;
                    font-size: 12px;
                    text-decoration: none;
                    transition: all 0.5s linear;
                }

            }

            &:hover {
                transform: scale(1.05);
                opacity: 1;

                .textBox {
                    background: none;
                }

                a {
                    opacity: 1;
                }
            }

        }

    }

}

//政策通告
.news1{
    box-sizing: border-box;
    width: 100%;
    padding: 0 15%;
    margin: 30px 0 0;
    overflow: hidden;

    li{
        width: 24%;
        float: left;
        overflow: hidden;
        position: relative;
        border-radius: 5px;
        transition: all 0.3s linear;
        box-sizing: border-box;
        margin-right: 1%;

        &:last-child{
            margin-right: 0;
        }

        img{
            width: 100%;
            transform: scale(1);
            transition: all 0.3s linear;
        }

        .hoverBox{
            position: absolute;
            left: 0;
            top: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.9);
            opacity: 0;
            transition: all 0.3s linear;

            a{
                display: block;
                width:40%;
                margin: 40px auto 0;
                color: #FFF;
                font-size: 14px;
                text-align: center;
                line-height: 30px;
                border: 1px solid #fff;
                border-radius: 15px;
            }


        }

        &:hover{
            .hoverBox{
                opacity: 1;
            }

            img{
                transform: scale(1.05);
            }


        }
    }


}


//村落活动
.news2{
    box-sizing: border-box;
    width: 100%;
    padding: 0 15%;
    margin: 30px 0 0;
    overflow: hidden;

    li{
        width: 24%;
        float: left;
        overflow: hidden;
        position: relative;
        border-radius: 5px;
        transition: all 0.3s linear;
        box-sizing: border-box;
        margin-right: 1%;
        padding: 0;

        &:last-child{
            margin-right: 0;
        }

        img{
            width: 100%;
            transform: scale(1);
            transition: all 0.3s linear;
        }

        .info{
            position: absolute;
            left: 0;
            top: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(0deg,rgba(0,0,0,0.5), rgba(0,0,0,0.0));


            time{
                position: absolute;
                padding: 0 10px;
                bottom: 30px;
                color: #FFF;
                font-size: 12px;
            }
            p{
                position: absolute;
                bottom: 10px;
                width: 100%;
                box-sizing: border-box;
                padding: 0 10px;
                color: #FFF;
                font-size: 14px;
                overflow: hidden;
                text-overflow:ellipsis;
                white-space: nowrap;
                margin-bottom: 0;
            }

        }


        .hoverBox{
            position: absolute;
            left: 0;
            top: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.8);
            opacity: 0;
            transition: all 0.3s linear;

            a{
                display: block;
                width:40%;
                position: absolute;
                left: 30%;
                top: 50%;
                margin-top: -15px;
                color: #FFF;
                font-size: 14px;
                text-align: center;
                line-height: 30px;
                border: 1px solid #fff;
                border-radius: 15px;
            }


        }

        &:hover{
            .hoverBox{
                opacity: 1;
            }

            .info{
                opacity: 0;
            }

            img{
                transform: scale(1.1);
            }


        }
    }


}


//文章
#popwindow{
    width: 100%;
    height: 1550px;
    position: absolute;
    top: 0%;
    left: 0%;
    z-index: 100;
    overflow-y: scroll;
}
.news-detail-window{
    width: 62%;
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    z-index: 4;
    padding-bottom: 60px;
    border-radius: 10px;
    display: flex;
    /*display: -webkit-flex;*/
    justify-content: center;
}
.news-detail-contanier{
    width: 85%;
    display: flex;
    flex-direction: column;
    margin-top: 3%;
}
.news-detail{
    width: 100%;
    margin-top: 2%;
}
#news-cancel{
    width: 20px;
    margin-left: 103%;
}
#detail-title{
    font-family: PingFangSC-Medium;
    font-size: 30px;
    color: #636364;
    letter-spacing: 2px;
    margin-top: 2%;
}
#detail-time{
    font-family: PingFangSC-Regular;
    font-size: 14px;
    color: #9B9B9B;
    letter-spacing: 0.78px;
    margin-top: 2%;
}
.news-detail-back-top{
    font-family: PingFangSC-Medium;
    font-size: 19px;
    color: #4A4A4A;
    letter-spacing: 2px;
    margin-top: 3%;
    cursor: default;
}
.news-detail-back-top:hover{
    font-family: PingFangSC-Medium;
    font-size: 19px;
    color: #F15A3F;
    letter-spacing: 2px;
    margin-top: 3%;
    cursor: default;
}


